<template>
  <el-form ref="form" label-width="80px">
    <el-form-item label="用户名">
      <el-input v-model="form.username"></el-input>
    </el-form-item>
    <el-form-item label="密码">
      <el-input v-model="form.password"></el-input>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="logOn">登录</el-button>
      <el-button>重置</el-button>
    </el-form-item>
  </el-form>
</template>
<script>
import axios from 'axios'
export default {
  data() {
    return {
      form: {
        username: '',
        password: ''
      },
      baseURL: 'http://43.138.15.137:7000/api/private/v1'
    }
  },
  methods: {
    logOn() {
      axios.post(this.baseURL + '/login', this.form).then(res => {
        let 
      })

    }
  }
}

</script>
<style>
.el-form {
  width: 30%;
  margin: 120px auto 0;
}
</style>